package cn.aitrox.ry.service.anno.entity;

import cn.aitrox.ry.bean.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "user_task")
public class UserTaskEntity extends BaseEntity {

    public static final String COL_JOIN_TIME = "joinTime";

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    private Integer userId;

    private Integer taskId;

    private Integer status;

    private Date joinTime;

    private Date beginTime;

    private Date endTime;

}
